Optimal. Leaf size=48 \[ \frac{2 a \tan (e+f x) \text{Hypergeometric2F1}\left (\frac{1}{2},1-n,\frac{3}{2},1-\sec (e+f x)\right )}{f \sqrt{a \sec (e+f x)+a}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0659588, antiderivative size = 48, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.087, Rules used = {3806, 65} \[ \frac{2 a \tan (e+f x) \, _2F_1\left (\frac{1}{2},1-n;\frac{3}{2};1-\sec (e+f x)\right )}{f \sqrt{a \sec (e+f x)+a}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3806
Rule 65
Rubi steps
\begin{align*} \int \sec ^n(e+f x) \sqrt{a+a \sec (e+f x)} \, dx &=-\frac{\left (a^2 \tan (e+f x)\right ) \operatorname{Subst}\left (\int \frac{x^{-1+n}}{\sqrt{a-a x}} \, dx,x,\sec (e+f x)\right )}{f \sqrt{a-a \sec (e+f x)} \sqrt{a+a \sec (e+f x)}}\\ &=\frac{2 a \, _2F_1\left (\frac{1}{2},1-n;\frac{3}{2};1-\sec (e+f x)\right ) \tan (e+f x)}{f \sqrt{a+a \sec (e+f x)}}\\ \end{align*}
Mathematica [A] time = 0.0910787, size = 51, normalized size = 1.06 \[ \frac{2 \tan \left (\frac{1}{2} (e+f x)\right ) \sqrt{a (\sec (e+f x)+1)} \text{Hypergeometric2F1}\left (\frac{1}{2},1-n,\frac{3}{2},1-\sec (e+f x)\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.193, size = 0, normalized size = 0. \begin{align*} \int \left ( \sec \left ( fx+e \right ) \right ) ^{n}\sqrt{a+a\sec \left ( fx+e \right ) }\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a \sec \left (f x + e\right ) + a} \sec \left (f x + e\right )^{n}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\sqrt{a \sec \left (f x + e\right ) + a} \sec \left (f x + e\right )^{n}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{a \left (\sec{\left (e + f x \right )} + 1\right )} \sec ^{n}{\left (e + f x \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]